package com.handong.handserialprogram.model.entities;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/11/30.
 */

public class CriminalEntity implements Parcelable,Serializable{

    /**
     * EscortMissionId : 39
     * PersonId : 666602
     * PersonType : 警察
     * EquipmentId : 003
     * CreateTime : 2016/12/1 14:57:36
     * PName : 张三
     */
    //private String EscortMissionId;
    private String PersonId;
    private String PersonType;
    private String EquipmentId;
    private String PName;
    private FootRingNewEntity ringEntity;

    public CriminalEntity() {
    }

    protected CriminalEntity(Parcel in) {
        PersonId = in.readString();
        PersonType = in.readString();
        EquipmentId = in.readString();
        PName = in.readString();
        ringEntity = in.readParcelable(FootRingNewEntity.class.getClassLoader());
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(PersonId);
        dest.writeString(PersonType);
        dest.writeString(EquipmentId);
        dest.writeString(PName);
        dest.writeParcelable(ringEntity, flags);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<CriminalEntity> CREATOR = new Creator<CriminalEntity>() {
        @Override
        public CriminalEntity createFromParcel(Parcel in) {
            return new CriminalEntity(in);
        }

        @Override
        public CriminalEntity[] newArray(int size) {
            return new CriminalEntity[size];
        }
    };

    @Override
    public String toString() {
        return "Criminal ID:" + PersonId + ", EquipmentId:" + EquipmentId;
    }

    public FootRingNewEntity getRingEntity() {
        return ringEntity;
    }

    public void setRingEntity(FootRingNewEntity ringEntity) {
        this.ringEntity = ringEntity;
    }

    public String getPersonId() {
        return PersonId;
    }

    public void setPersonId(String PersonId) {
        this.PersonId = PersonId;
    }

    public String getPersonType() {
        return PersonType;
    }

    public void setPersonType(String PersonType) {
        this.PersonType = PersonType;
    }

    public String getEquipmentId() {
        return EquipmentId;
    }

    public void setEquipmentId(String EquipmentId) {
        this.EquipmentId = EquipmentId;
    }

    public String getPName() {
        return PName;
    }

    public void setPName(String PName) {
        this.PName = PName;
    }
}
